package com.lagou.edu;

import com.lagou.edu.ioc.ApplicationContext;
import com.lagou.edu.ioc.annotation.AnnotationConfigApplicationContext;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by leon.L on 2020/1/9.
 * Desc :
 */
public class ClassLoadListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
